home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / boot / avwm.lzh / avwm-0.4 / avwm.h < prev    next >
C/C++ Source or Header  |  1994-08-08  |  2KB  |  56 lines

  1. /* avwm.h */
  2.  
  3. #define VERSION "avwm 0.4"
  4. #define VER_NUM 0
  5. #define REV_NUM 4
  6.  
  7. #define AVWM_WIDTH 182
  8. #define AVWM_HEIGHT 82
  9.  
  10. #define SUB_WIDTH 58
  11. #define SUB_HEIGHT 34
  12.  
  13. #define GREY    0
  14. #define BLACK    1
  15. #define WHITE    2
  16. #define BLUE    3
  17.  
  18. #define HIGH_PRI 0x7f
  19.  
  20. struct vWindow {
  21. struct Node    node;
  22. struct Window    *window;
  23. short        area, changed,
  24.         ox, oy, ow, oh, /* original position */
  25.         sx, sy, sw, sh; /* virtual-window position */
  26. };
  27.  
  28. #define OPT_NO_TIMER 1
  29. #define OPT_NO_SETF 2
  30. #define OPT_MOVE_SCREEN 4
  31.  
  32. #define ACT_NONE      0
  33. #define ACT_MOVE_WIN  1
  34. #define ACT_SIZE_WIN  2
  35.  
  36. #define AREA(left,top) (((left) / VisWidth << 1) + (top) / VisHeight)
  37. #define vAREA(left,top) (((left) / SUB_WIDTH << 1) + (top) / SUB_HEIGHT)
  38. #define AREA_X(area) ((area) >> 1)
  39. #define AREA_Y(area) ((area) & 1)
  40.  
  41. int close_window (struct IntuiMessage *msg, struct Callback *cb);
  42. int mouse_event (struct IntuiMessage *msg, struct Callback *cb);
  43. int mouse_move (struct IntuiMessage *msg, struct Callback *cb);
  44. int refresh_window (struct IntuiMessage *msg, struct Callback *cb);
  45. int timer_event (struct timerequest *msg, struct Callback *cb);
  46. void workbench_monitor_event (int signals);
  47. struct Window *assert_window (struct Window *search);
  48. void exit_avwm (int code);
  49. void refresh_graphic (void);
  50. void redraw_graphic (void);
  51. struct vWindow *find_window (int x, int y);
  52. void init_timer (void);
  53. void draw_box (short color, short x1, short y1, short x2, short y2, struct RastPort *rp);
  54. void draw_frame (short color, short x1, short y1, short x2, short y2, struct RastPort *rp);
  55. void draw_vwindow (int color, struct vWindow *vw);
  56.